import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import ReadmeView from '@/views/ReadmeView.vue'
import AnalysisView from '@/views/AnalysisView.vue'
import ProposalView from '@/views/ProposalView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 首页
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    
    // 项目说明
    {
      path: '/readme',
      name: 'Readme',
      component: ReadmeView,
    },

    // 文献分析
    {
      path: '/analysis',
      name: 'Analysis',
      component: AnalysisView,
    },

    // 选题建议
    {
      path: '/proposal',
      name: 'Proposal',
      component: ProposalView,
    },
  ],
})

export default router
